//
//  main.m
//  02-HomeWork
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Fraction.h"
int main(int argc, const char * argv[]) {
    
    Fraction *fra1 = [[Fraction alloc]initWithNumer:3 withDenom:4];
    Fraction *fra2 = [[Fraction alloc]initWithNumer:2 withDenom:6];
    Fraction *addFra = [fra1 addFra1:fra2];
    Fraction *subFra = [fra1 subFra:fra2];
    Fraction *mulFra = [fra1 mulFra:fra2];
    Fraction *divFra = [fra1 divFra:fra2];
    [fra1 compareFra:fra2];
    NSLog(@"%@",[addFra description]);
    NSLog(@"%ld %ld",addFra.numer,addFra.denom);
    NSLog(@"%ld %ld",subFra.numer,subFra.denom);
    NSLog(@"%ld %ld",mulFra.numer,mulFra.denom);
    NSLog(@"%ld %ld",divFra.numer,divFra.denom);
    return 0;
}
